import { Component, PropEditor } from "maishu-jueying";
import { Categories, Props as ComponentPorps } from "./component";
import { CategoriesEditor } from "./items-editor";
import { toggle } from "components/common/custom-prop-editors";

let showIcon: keyof ComponentPorps = "showIcon";
Component.setPropEditor({
    componentType: Categories.name,
    editorType: toggle(),
    propName: showIcon,
    displayName: "显示图标"
})

Component.setPropEditor({
    componentType: Categories.name,
    editorType: CategoriesEditor,
    propName: "items",
    displayName: "类别"
})
